From 3ee0160603a578c49506899d4e76b4b07902757c Mon Sep 17 00:00:00 2001 From: "emellor@ewan" Date: Fri, 30 Sep 2005 13:58:08 +0100 Subject: [PATCH] Update comment/variable names to reflect the fact that the backend paths now contain the frontend domid, not the uuid. The actual functionality is the same, because the ID is referred to by path level, so the change in semantics is not a problem. Signed-off-by: Ewan Mellor --- linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c index 11593d6871..9164e88806 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c @@ -184,7 +184,7 @@ static int xenbus_hotplug_backend(struct device *dev, char **envp, return 0; } -static int xenbus_probe_backend(const char *type, const char *uuid); +static int xenbus_probe_backend(const char *type, const char *domid); static struct xen_bus_type xenbus_backend = { .root = "backend", .levels = 3, /* backend/type// */ @@ -419,15 +419,15 @@ static int xenbus_probe_backend_unit(const char *dir, return err; } -/* backend// */ -static int xenbus_probe_backend(const char *type, const char *uuid) +/* backend// */ +static int xenbus_probe_backend(const char *type, const char *domid) { char *nodename; int err = 0; char **dir; unsigned int i, dir_n = 0; - nodename = kasprintf("%s/%s/%s", xenbus_backend.root, type, uuid); + nodename = kasprintf("%s/%s/%s", xenbus_backend.root, type, domid); if (!nodename) return -ENOMEM; @@ -607,6 +607,7 @@ void xenbus_suspend(void) down(&xenbus_lock); bus_for_each_dev(&xenbus_frontend.bus, NULL, NULL, suspend_dev); bus_for_each_dev(&xenbus_backend.bus, NULL, NULL, suspend_dev); + xb_suspend_comms(); } void xenbus_resume(void) @@ -650,6 +651,7 @@ int do_xenbus_probe(void *unused) int err = 0; /* Initialize xenstore comms unless already done. */ + printk("store_evtchn = %i\n", xen_start_info->store_evtchn); err = xs_init(); if (err) { printk("XENBUS: Error initializing xenstore comms:" -- 2.30.2